package com.cn.steam.foundation.common.web.model;

/**
 * @param <T>
 * @author huangzz
 */

public class ServiceContext<T> extends ThreadLocal {
    /**
     * required
     */
    private boolean isAdmin;
    /**
     * required
     */
    private String sourceId;
    /**
     * required
     */
    private String userId;

    private T extension;

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public T getExtension() {
        return extension;
    }

    public void setExtension(T extension) {
        this.extension = extension;
    }
}
